import Layout from "/@/layout/index.vue";

const blockSnapshotRouter = {
  path: "/blockSnapshot",
  name: "blockSnapshot",
  component: Layout,
  redirect: "/block",
  meta: {
    icon: "Link",
    title: "message.blockBrowser",
    showLink: true,
    i18n: true,
    rank: 0
  },
  children: [
    {
      path: "/block",
      name: "block",
      component: () => import("/@/views/block-snapshot/block.vue"),
      meta: {
        title: "message.blockSnapshot",
        i18n: true,
        showLink: true
      }
    },
    {
      path: "/blockInfo",
      name: "blockInfo",
      component: () => import("/@/views/block-snapshot/blockInfo.vue"),
      meta: {
        title: "message.blockInfo",
        i18n: true,
        showLink: false
      }
    },
    {
      path: "/transaction",
      name: "transaction",
      component: () => import("/@/views/transaction-snapshot/index.vue"),
      meta: {
        title: "message.transactionSnapshot",
        i18n: true,
        showLink: true
      }
    },
    {
      path: "/transactionInfo",
      name: "transactionInfo",
      component: () =>
        import("/@/views/transaction-snapshot/transactionInfo.vue"),
      meta: {
        title: "message.transactionInfo",
        i18n: true,
        showLink: false
      }
    }
  ]
};

export default blockSnapshotRouter;
